home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / Show_help / main.c next >
Encoding:
C/C++ Source or Header  |  1991-06-04  |  781 b   |  34 lines  |  [TEXT/KAHL]

  1. #define BASE_RES_ID        128
  2. #define BASE_PICT_ID    1000
  3. #define REMOVE_ALL_EVENTS 0
  4. #define NIL                0L
  5.  
  6. #include <MacProto.h>
  7.  
  8. void ToolBoxInit( void );
  9. void main( void );
  10. void Show_help( short help_dlog_id, short help_text_id,
  11.         short base_pict_id, StringPtr default_filename,
  12.         StringPtr default_menuname );
  13.  
  14. /* ------------------------------------------------------------------ */
  15. void main()
  16. {
  17.     ToolBoxInit();
  18.     Show_help( BASE_RES_ID, BASE_RES_ID, BASE_PICT_ID,
  19.         (StringPtr)"\pShow_help help", (StringPtr)"\pTitle page");
  20. }
  21.  
  22. /* ------------------------------------------------------------------ */
  23. void ToolBoxInit()
  24. {
  25.     InitGraf( &thePort );
  26.     InitFonts();
  27.     FlushEvents( everyEvent, REMOVE_ALL_EVENTS );
  28.     InitWindows();
  29.     InitMenus();
  30.     TEInit();
  31.     InitDialogs( NIL );
  32.     InitCursor();
  33. }
  34.